<?php
namespace Api\Controller;

use Think\Controller;

class FeedbackController extends Controller
{

    protected $feedback_model;
    public function _initialize()
    {
        $this->feedback_model = D("Common/Feedback");

    }
    /**
     * 添加反馈记录
     */
    public function addFeedback()
    {
       $phone = I('phone');
       $content = I('content');
       $ouId = I('userId');
        $data = array(
            "phone"=>$phone,
            "content"=>$content,
            "user_id"=>$ouId,
            'create_time' => date("Y-m-d H:i:s")
        );
        $this->feedback_model->add($data);

        $this->returnok('', 'ok');
    }
}